<% for category in @categories %>
  <% if (category.randomImage != nil) %>
    <span class="thumbnail"><img src="<%= category.randomImage.thumburl %>"></span>        
  <% end %>
<% end %>
